home *** CD-ROM | disk | FTP | other *** search
- Path: prodigy.com!usenet
- From: FBRS77A@prodigy.com (Gregory Nagawiecki)
- Newsgroups: comp.lang.c
- Subject: Re: system() & error detection
- Date: 2 Mar 1996 19:01:16 GMT
- Organization: Prodigy Services Company 1-800-PRODIGY
- Distribution: world
- Message-ID: <4ha5ts$l7a@usenetw1.news.prodigy.com>
- References: <4gt24g$dba@ncar.ucar.edu> <4gt7f4innt1j@keats.ugrad.cs.ubc.ca> <4h36nl$6g0@clarknet.clark.net>
- NNTP-Posting-Host: inugap6.news.prodigy.com
- X-Newsreader: Version 1.2
-
- When using system(), the exit status of the command is returned in the
- higher order byte.
-
- Thus, your code would look like
-
- status = system(" ... ") / 256;
-
- The lower order byte is used for other status info.
-
- Greg Nagawiecki
- SW Eng (12 yrs exp.)
-
-